<script setup lang="ts">
import { ref } from 'vue';
const active = ref('film');
</script>

<template>
  <div>
    <router-view />
    <van-tabbar v-model="active">
      <van-tabbar-item name="film" replace to="/film" badge="20" icon="tv-o">电影</van-tabbar-item>
      <van-tabbar-item name="cart" replace to="/cart" icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item name="order" replace to="/order" icon="balance-list-o">订单</van-tabbar-item>
      <van-tabbar-item name="other" replace to="/other" icon="user-circle-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<style scoped>
</style>